//
//  AudioPlayerV.m
//  MGameTribe
//
//  Created by 杨敏 on 13-12-5.
//  Copyright (c) 2013年 YangMin. All rights reserved.
//

#import "AudioPlayerV.h"
#import "ConstantHeader.h"
#import "Tool.h"
@interface AudioPlayerV()


@end

@implementation AudioPlayerV

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor=[UIColor clearColor];
        self.clipsToBounds=YES;
        
        UIImage *bgImg=ResizeImage(ImageWithName(@"btn_record_norm", @"png", NO), 20, 20, 0, 0);
        
        self.recordBtn=[DoubleFaceButton buttonWithType:UIButtonTypeCustom];
        _recordBtn.frame=self.bounds;
        [_recordBtn setBackgroundImage:bgImg forState:UIControlStateNormal];
        _recordBtn.titleLabel.font=[UIFont systemFontOfSize:FontSize_DefaultListTip];
        [_recordBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [_recordBtn setTitle:@"录音时长" forState:UIControlStateNormal];
        UIImage *recordImg=ImageWithName(@"tip_audio", @"png", NO);
        [_recordBtn setImage:recordImg forState:UIControlStateNormal];
        [self addSubview:_recordBtn];

    }
    return self;
}


@end
